package com.ftf.tp.blog.infrastructure.mapper.pos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author tanghao
 * @date 2022/6/24
 */
@ApiModel(value = "column_subscribe")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "column_subscribe")
public class ColumnSubscribePO {
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "")
    private Integer id;

    /**
     * 专栏id
     */
    @TableField(value = "column_id")
    @ApiModelProperty(value = "专栏id")
    private Long columnId;

    /**
     * 专栏名称
     */
    @TableField(value = "`column_name`")
    @ApiModelProperty(value = "专栏名称")
    private String columnName;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户id")
    private Long userId;

    /**
     * 用户名称
     */
    @TableField(value = "user_name")
    @ApiModelProperty(value = "用户名称")
    private String userName;

    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;
}